package com.corpgovernment.organization.enumm;

import lombok.Getter;

public enum ErrorCodeEnum {
    INVALID_SYS_IDENTIFY("0001", "系统标识无效"),
    UN_SUPPORT_REQ_METHOD("0002", "请求类型错误"),
    DECRYPT_ERROR("0003", "数据加解密错误"),
    INVALID_IP("0004", "无效的IP地址，客户端IP地址未注册"),
    NO_PERMISSION("0005", "无权限访问"),
    TO_FREQUENT_CALLS("0006", "超出调用频率限制"),
    WRONG_REQ_FORMAT("0007", "请求格式解析失败"),
    INVALID_SYS_NAME("0008", "系统名称无效"),
    INVALID_TOKEN("0009", "无效Token"),
    INTERNAL_ERROR("0010", "接口调用时发生异常"),

    ACCOUNT_NOT_EXISTS("0020", "白名单帐号不存在(N)"),
    ACCOUNT_DELETED_OR_OUTDATED("0030", "白名单帐号已失效或被删除(X)"),

    CITY_UN_SUPPORT("0020", "航天商旅系统中不存在该城市"),
    CITY_AIRPORT_NOT_EXIST("0030", "该城市无机场或者临近机场"),

    TICKET_PRICE_INTERNAL_ERROR("0020", "接口返回异常"),
    TICKET_PRICE_LEG_PRICE_GET_FAILED("0030", "该航段未获取到标准价格"),
    TICKET_PRICE_AIRLINES_GET_FAILED("0040", "无指定航空公司的机票标准价格")
    ;

    @Getter
    private String code;
    @Getter
    private String msg;
    ErrorCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
